import pytest
import os
from common import getToken


# F 失败
#E 失败
# . 成功
#pytest.main(['-vs','./test_login.py::Testfunc01','--alluredir=../report/'])
#os.system('allure generate ./report/ -o ./allreport --clean')

if __name__=="__main__":
    pytest.main(["../test_case/","-s","-v",'--alluredir=../report/']) # -s 打印输出  -sq=简化输出
    os.system('allure generate ../report/ -o ../allreport/ --clean')
    os.system('allure open ../allreport')